from game_manager import MyBattleshipManager
from game_shared import SERVER_PORT
import time


#=======================================================================================================================
# 
#=======================================================================================================================
manager = MyBattleshipManager()
manager.connect('localhost', SHARED_SERVER_PORT)


# Just to give the user a prompt to interact with the server.
while 1:
    
	print '\n -------'
	print 'Manage the game:'
	print '\t Valid commands:'
	print '\t * manager.snapshot( <ID FOR GAME> )'
	print '\t * manager.add_game( <ID FOR GAME> )' 
	print "\n NOTE: snapshot will print out on the server's log."
	
	expression = raw_input('>> ')
	eval( expression )
    